package com.scf.user.service.impl;

import com.scf.user.entity.File;
import com.scf.user.mapper.FileMapper;
import com.scf.user.service.FileService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author author
 * @create 2021-11-22-12:12
 */
@Service
public class FileServiceImpl implements FileService {

    @Resource
    FileMapper fileMapper;

    @Override
    public boolean insert(File file) {
        int insert = fileMapper.insert(file);
        if(insert==1){
            return true;
        }
        return false;
    }

    @Override
    public List<File> select(int plid) {
        List<File> select = fileMapper.select(plid);
        return select;
    }
}
